package com.hnas.account.util;

import java.util.HashMap;
import java.util.Map;

public class AccountConstant {

	static Map<String,String> loginTypeMap = new HashMap<String, String>();
	static Map<String,String> appTypeMap = new HashMap<String, String>();
	static Map<String,String> validMap = new HashMap<String, String>();
	
	public static final String LOGIN_TYPE_HBAPP = "0";//0-用户名登录   1-手机验证码登录   2-第三方登录
	public static final String LOGIN_TYPE_WXXNK = "1";
	public static final String LOGIN_TYPE_THD = "2";
	
	public static final String APP_TYPE_HBAPP = "1";
	public static final String APP_TYPE_WXXNK = "2";

	public static final String VALID = "1";//有效
	public static final String NOT_VALID = "0";//无效
	
	
	
	static {
		loginTypeMap.put(LOGIN_TYPE_HBAPP, "海贝账户登录 ");
		loginTypeMap.put(LOGIN_TYPE_WXXNK, "手机验证码登录 ");
		loginTypeMap.put(LOGIN_TYPE_THD, "第三方登录");
		
		appTypeMap.put(APP_TYPE_HBAPP, "海贝APP");
		appTypeMap.put(APP_TYPE_WXXNK, "微信虚拟卡");
		
		validMap.put(VALID, "启用");
		validMap.put(NOT_VALID, "锁定");
	}
	
	public static String getLoginTypeValue(String key){
		return loginTypeMap.get(key)==null?"":loginTypeMap.get(key);
	}
	
	public static String getAppTypeValue(String key){
		return appTypeMap.get(key)==null?"":appTypeMap.get(key);
	}
	
	public static String getValidValue(String key){
		return validMap.get(key)==null?"":validMap.get(key);
	}
	
	public static Map<String, String> getValidMap(){
		return validMap;
	}
	
}
